package com.atguigu.schedule.dao;

import com.atguigu.schedule.POJO.SysUser;

import java.sql.SQLException;

public interface SysUesrDao {
    /**
     * 向数据库增加一条记录。并获取返回值
     * @param sysUser
     * @return
     */
    int addUser(SysUser sysUser) throws SQLException;

    /**
     * 查询数据是否存在
     * @param sysUser
     * @return
     */
    SysUser findByUsername(SysUser sysUser);
}
